package com.qfedu.service.impl;

import com.qfedu.dao.IRegisteredDao;
import com.qfedu.pojo.Registered;
import com.qfedu.service.IRegisteredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RegisteredServiceImpl implements IRegisteredService {
    @Resource
    private IRegisteredDao registeredDao;


    @Override
    public Registered saveRegistered(Registered r) {
        this.registeredDao.saveRegistered(r);
        return r;
    }

    @Override
    public Registered getRegisteredByRid(int rid) {
        return registeredDao.getRegisteredByRid(rid);
    }

    @Override
    public Registered updateRegistered(Registered r) {
        return registeredDao.updateRegistered(r);
    }


}
